package com.jnevision.recruitmentplan.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.jnevision.util.DateUtil;

/**
 * <p>
 * 招聘计划
 * </p>
 *
 * @author gavin
 * @since 2019-07-18
 */
@TableName("b_recruitment_plan")
public class RecruitmentPlan extends Model<RecruitmentPlan> {
    private static final long serialVersionUID = 220216821032432972L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("dept_id")
    private Integer deptId;

    @TableField("job")
    private String job;

    @TableField("education")
    private String education;

    @TableField("salary")
    private String salary;

    @TableField("work_years")
    private String workYears;

    @TableField("peoples")
    private String peoples;

    @TableField("recruitment_time")
    private String recruitmentTime;

    @TableField("create_time")
    private String createTime = DateUtil.getNormalTime();
    
    @TableField("is_valid")
    @TableLogic
    private Boolean valid;

    @TableField(exist = false)
    private String deptName;
    
    @TableField("content")
    private String content;
    
    
    

    public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDeptName() {
        return this.deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getWorkYears() {
        return workYears;
    }

    public void setWorkYears(String workYears) {
        this.workYears = workYears;
    }

    public String getPeoples() {
        return peoples;
    }

    public void setPeoples(String peoples) {
        this.peoples = peoples;
    }

    public String getRecruitmentTime() {
        return recruitmentTime;
    }

    public void setRecruitmentTime(String recruitmentTime) {
        this.recruitmentTime = recruitmentTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    
    

    public Boolean isValid() {
		return valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RecruitmentPlan{" + "id=" + id + ", deptId=" + deptId + ", job=" + job + ", education=" + education
            + ", salary=" + salary + ", workYears=" + workYears + ", peoples=" + peoples + ", recruitmentTime="
            + recruitmentTime + ", createTime=" + createTime + "}";
    }
}